package com.cnfangmao.masterdata.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cnfangmao.masterdata.dto.EnumTypeDto;
import com.cnfangmao.masterdata.dto.GeneralSearchDto;
import com.cnfangmao.masterdata.model.EnumType;
import com.cnfangmao.masterdata.vo.GeneralPageVo;

/**
 * <p>
 * 字段枚举类型 服务类
 * </p>
 *
 * @author chenxd
 * @since 2020-04-14
 */
public interface EnumTypeService extends IService<EnumType> {
	
	/**
	 * 
	 * @param sourceMetadataId
	 * @param sourceFieldId
	 * @return
	 */
	public EnumType getEnumTypeByCodeOrName(String typeCode, String typeName);
	
	/**
	 * 
	 * @param searchDto
	 * @return
	 */
	public GeneralPageVo<EnumType> getEnumTypesByPage(GeneralSearchDto<EnumTypeDto> searchDto);
}
